-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Stylus configure dialog height by refactoring and Optimizing Stylus Popup Height Adjustment Logic #1808
Conversation
also the height isnt over done so you can scroll within the configure dialog |
@tophf Can you check this, thank you! |
The problem looks like #1795 which is already fixed in the source code, but it wasn't released yet. Could you test it? |
@tophf I will test it , what branch is the fix on ? |
It's already in the default branch. |
@tophf Well in that case I forked master (which im assuming is the default) a couple hours ago, and the problem was still present |
What's your OS, OS scaling, browser zoom in browser settings, extension zoom in Stylus style manager page? |
@tophf Windows zoom level and mac I have them at 125% |
My display is single density and I can't reproduce the problem at 125%. Anyway, there should be no need to do what you did in this PR and recalculate positions. The problem should be fixed in our existing functions: |
I see there was a related bug in our code. Try changing |
Also please check |
@tophf Oh i see yes I just tested and making
|
@tophf I removed my change and updated the change |
@toph my mistake those pesky json files commited by mistake i fixed it |
PR Description: Fix for Proper Popup Resizing by Changing CSS
initial
torevert
Summary:
This PR addresses an issue where the popup resizing logic was not functioning as expected due to the use of the CSS property
all:initial
within theonWindowResize
function. The fix involved changing this toall:revert
, which led to the correct behavior.Key Change:
#max
element fromall:initial
toall:revert
.Impact:
revert
ensures the element respects inherited or user-agent styles, which can be more predictable and reliable thaninitial
.Conclusion:
This fix resolves the issue with popup resizing by leveraging the more appropriate
revert
CSS property, leading to more consistent behavior across different environments.